package com.caocaog.market.toccpt.controller;

import com.caocaog.market.toccpt.service.ApiForOrderService;
import org.jeecg.common.api.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liguang
 * @version 1.0.0
 * @Project jeecg-boot
 * @Package com.caocaog.market.toccpt.controller
 * @ClassName TestRef.java
 * @createTime 2022年01月15日 18:04:00
 * @Description 取消订单测试，无需要登录
 */
@RestController
@RequestMapping("/caocaog/ab")
public class TestRefController {
    @Autowired
    private ApiForOrderService apiForOrderService;
    @GetMapping(value="/ref")
    public Result ref(@RequestParam("orderId") String orderId){
        Result result = apiForOrderService.cancelOrderToCcpt(orderId);
        return result;
    }
}
